package movie6.posprintrecept2.module

import java.io.Serializable

/**
 * Created by windsze on 5/7/2017.
 * HKMovie. GT.
 */

// region pref_key
const val pref_key_my_user_account = "my_user_account"
const val pref_key_all_user_account = "all_user_account"
const val pref_key_all_user = "all_user"
const val pref_key_device_id = "pref_key_device_id"
const val pref_key_device_name = "pref_key_device_name"
const val pref_key_current_shift = "pref_key_current_shift"
const val pref_key_tnc = "pref_key_tnc"
const val pref_key_reset_application = "pref_key_reset_application"
const val pref_all_shared = "pref_all_sharedpreference"
const val pref_key_default_payment_type = "pref_key_default_payment_type"
const val pref_key_switch_print_ticket = "pref_key_switch_print_ticket"
const val pref_key_switch_print_concession = "pref_key_switch_print_concession"
const val pref_key_switch_print_receipt = "pref_key_switch_print_receipt"
const val pref_key_switch_use_new_login = "pref_key_switch_use_new_login"
const val pref_key_switch_refund_and_hold = "pref_key_switch_refund_and_hold"
const val pref_key_switch_use_camera_scan = "pref_key_switch_use_camera_scan"
const val pref_key_printer_model = "printerModel"
const val pref_key_printer_portName = "printerPortName"
const val pref_key_printer_macAddress = "printerMacAddress"
const val pref_key_printer_portSetting = "printerPortSetting"
const val pref_key_printer_emulation = "printerEmulation"
const val pref_key_printer_drawerOption = "printerDrawerOption"
const val ACTION_NETWORK_ERROR = "eiga-ticketinig-ACTION_NETWORK_ERROR"

// endregion

// region printer paper size
const val paper_size_2_inch = 384
const val paper_size_2_inch_ticket = 432
const val paper_size_3_inch = 576
// endregion

// region Intent_key
const val INTENT_MOVIE_ID = "movie_id"
const val INTENT_CINEMA_ID = "cinema_id"
const val INTENT_SHOW_ID = "show_id"
const val INTENT_HOUSE_ID = "house_id"
const val INTENT_TRANSACTION_ID = "transaction_id"
const val INTENT_ADD_3D_GLASS = "add_3d_glass"
const val INTENT_TICKET_COUNT = "ticket_count"
const val INTENT_VIP_TICKET_COUNT = "ticket_vip_count"
const val INTENT_VIP_TICKET_PRICE = "ticket_vip_price"
const val INTENT_SHOW_RESPONE = "show_response"
const val INTENT_SELECTED_SEATS = "selected_seat"
const val INTENT_TRANSACTION = "new_transaction"
const val INTENT_SEARCH = "search_id"
const val INTENT_SCAN_OPTION = "scan_option"
const val INTENT_FROM_PAGE = "from_page"
const val INTENT_PURCHASABLE = "purchasable"
const val INTENT_ALL_SEATS = "all_seats"
const val INTENT_CONGESTIONLEVEL = "CongestionLevel"
const val USER_TOKEN = "com.eigaland.token"
const val CINEMA_ID = "com.eigaland.CINEMA_ID"
const val DEVICE_SEC = "com.eigaland.device_sec"
const val IS_SEARCH = "com.eigaland.IS_SEARCH"



class Constant {
    enum class Action : Serializable {
        LOGIN, RELOGIN;

        override fun toString(): String = this.name
    }

	enum class JPDate {
		Sun, Mon, Tue, Wed, Thu, Fri, Sat;

		override fun toString(): String {
			return when (this) {
				Sun -> "日"
				Mon -> "月"
				Tue -> "火"
				Wed -> "水"
				Thu -> "木"
				Fri -> "金"
				Sat -> "土"
			} + "曜日"
		}
	}
}